﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Master/InSite.Master" CodeBehind="BillDetail.aspx.vb" Inherits="Core.BillDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


<fieldset style="width: 350px;float: left;margin-right: 20px;margin-top: 18px;">
    <legend>Thông tin khách hàng</legend>
    <table width="100%">
        <tbody>
            <tr>
                <td style="width:100px; color: red;height: 25px;">Mã đơn hàng: </td>
                <td><asp:Label ID="lblBillID" runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>
                <td style="width:100px; color: #666666;height: 25px;">Tên khách hàng: </td>
                <td><asp:Label ID="lblName" runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>
                <td style="width:100px; color: #666666;height: 25px;">Email: </td>
                <td><asp:Label ID="lblEmail" runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>
                <td style="width:100px; color: #666666;height: 25px;">Địa chỉ: </td>
                <td><asp:Label ID="lblAddress" runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>
                <td style="width:100px; color: #666666;height: 25px;">Số điện thoại: </td>
                <td><asp:Label ID="lblPhone" runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>
                <td style="width:100px; color: #666666;height: 25px;">Ngày đặt: </td>
                <td><asp:Label ID="lblDate" runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>
                <td style="width:100px; color: #666666;height: 25px;">Trạng thái: </td>
                <td><asp:Label ID="lblStt" runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>
                <td style="width:100px; color: #666666;vertical-align: top;height: 25px;">Ghi chú:  </td>
                <td><asp:Label ID="lblDesc" runat="server" Text=""></asp:Label></td>

            </tr>
            <tr>
                <td style="width:100px; color: #666666;vertical-align: top;height: 25px;"></td>
                <td>
                    <asp:Button ID="btnAccept" runat="server" Text="Duyệt" class="button" Height="26px" Visible="false" />
                    <asp:Button ID="btnDelivery" runat="server" Text="Đã giao hàng" class="button" Height="26px" Visible="false" />
                    <asp:Button ID="btnCancel" runat="server" Text="Hủy đơn" class="button" Height="26px" />
                    <asp:Button ID="btnBack" runat="server" Text="Quay lại" class="button" Height="26px" />
                </td>
            </tr>
        </tbody>
    </table>
</fieldset>

<fieldset style="width: 450px;min-height: 235px;">
    <legend>Chi tiết đơn hàng</legend>
    <asp:GridView ID="grid2" runat="server" class="tblMain"
            AutoGenerateColumns="false" GridLines="None" DataKeyNames="ProID" PageSize="10" AllowSorting="True"
            HeaderStyle-BackColor="#9097a9"> 
            <Columns>
                <asp:TemplateField HeaderText="No.">
                    <ItemTemplate>
                        <asp:Label Visible="false" runat="server" ID="lbl_ID" Text='<%#Eval("BillDetailID") %>'></asp:Label>
                        <asp:Label Visible="true" runat="server" ID="lblNo" Text='<%#Container.DataItemIndex + 1 %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle Width="20px" HorizontalAlign="Left" ForeColor="Black" VerticalAlign="Middle"/>
                    <ItemStyle Width="20px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tên SP">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblProName" Text='<%#Eval("ProName") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle Width="150" HorizontalAlign="Left" VerticalAlign="Middle" />
                    <ItemStyle Width="150" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Giá">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblProNewPrice" Text='<%#formatCurrency(Eval("ProNewPrice")) %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle Width="60" HorizontalAlign="center" VerticalAlign="Middle" />
                    <ItemStyle Width="60" HorizontalAlign="Right" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Số lượng">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblBillDetailCnt" Text='<%#Eval("BillDetailCnt") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle Width="20" HorizontalAlign="Left" VerticalAlign="Middle" />
                    <ItemStyle Width="20" HorizontalAlign="center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tổng tiền">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblTotal" Text='<%#formatCurrency(Eval("Total")) %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle Width="60" HorizontalAlign="center" VerticalAlign="Middle" />
                    <ItemStyle Width="60" HorizontalAlign="Right" />
                </asp:TemplateField>
            </Columns>
        <PagerStyle HorizontalAlign="Center" />
    </asp:GridView>
    <table width="100%" style="margin-bottom:10px;margin-top: 20px;">
        <tr>
            <td style="width:110px; color: #666666;text-align:right;">Tổng giá trị đơn hàng: &nbsp;&nbsp;<asp:Label ID="lblTotal" runat="server" Text="" CssClass="lblTotal"></asp:Label></td>
        </tr>
    </table>
</fieldset>

</asp:Content>
